<?php

namespace App\Library\Traits\Orm;

use App\Models\CouponModel;
use Illuminate\Database\Eloquent\Relations\HasOne;

trait CouponUserRelatedOrmTrait
{
    public function coupon(): HasOne
    {
        return $this->HasOne(CouponModel::class, 'id', 'coupon_id');
    }
}
